package com.skt.common_hr.mintview.events
{
	import flash.events.Event;

	public class WorkTimeEvent extends Event
	{
		public static const CHANGED_MONTH:String = "changedMonth";
		public static const CHANGED_RANGE:String = "changedRange";
		//public static const SELECTED_DATE:String = "selectedDate";
		public static const SELECTED_WORKTIME:String = "selectedWorkTime";
		public static const SELECTED_VACATION:String = "selectedVacation";
		public static const MODIFY_WORKTIME:String = "modifyWorkTime";
		public static const MODIFY_VACATION:String	 = "modifyVacation";
		public static const DELETE_WORKTIME:String  = "deleteWorkTime";
		
		public var beginDate:Date;
		public var endDate:Date;
		public var key:String;
		public function WorkTimeEvent(type:String, bDate:Date, eDate:Date=null, key:String="")
		{
			super(type, false, false);
			this.beginDate = new Date(bDate);
			this.endDate   = new Date(eDate);
			this.key	   = key; 
		}
		
		override public function clone():Event
		{
			return new WorkTimeEvent(this.type, beginDate, endDate, key);
		}
		
	}
}